﻿Imports LecturerAppointmentSystem.UserDetails

Public Class Site1
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'If HttpContext.Current.User.Identity.IsAuthenticated Then
        '    Dim user As MembershipUser = Membership.GetUser()
        '    Try
        '        Dim userId As Integer = user.ProviderUserKey
        '        lb_Home.PostBackUrl = "Default.aspx?UserId=" & userId
        '        lb_Appointments.PostBackUrl = "Appointments.aspx?UserId=" & userId
        '        lb_Calendar.PostBackUrl = "Calendar.aspx?Date=" & Date.Today & "&UserId=" & userId
        '    Catch ex As Exception
        '        HttpContext.Current.Session.Clear()
        '        Response.Redirect("Login.aspx")
        '    End Try
        'Else

        'End If

    End Sub
End Class